package com.teng.objecttest;

import com.teng.domain.Phone;

public class TestPhone {
    public static void main(String[] args) {
        Phone p1 = new Phone();
        p1.setBrand("小米");
        p1.setColor("黑色");
        p1.setPrice(3998);
        Phone p2 = new Phone();
        p2.setBrand("小米");
        p2.setColor("黑色");
        p2.setPrice(3998);

        p1.call("64728232");
        p1.sendMessage("你好");
        p2.call("64728232");
        p2.sendMessage("你好");
    }
}
